﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FilStartUps.Controls;

namespace FilStartUps
{
    public partial class Home : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Fix for User Auth
            if (User.Identity.IsAuthenticated)
            {
                LinkButton lkHome = (LinkButton)FilStartUpsPageNav.FindControl("lbLgout");
                LinkButton lkProfile = (LinkButton)FilStartUpsPageNav.FindControl("lbProfile");
                lkProfile.Visible = true;
                lkHome.Visible = true;
            }
        }
       

        protected void signup_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Account/Registration.aspx");
        }

        protected void signin_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Account/Login.aspx");
        }

    }
}